package cn.wsgfz.test;

import cn.wsgfz.ViewServer;
import android.app.Activity;
import android.os.Bundle;

public class BaseActivity extends Activity {
	@Override
	public void onDestroy() {
		super.onDestroy();
		ViewServer.get(this).removeWindow(this);
	}

	@Override
	public void onResume() {
		super.onResume();
		ViewServer.get(this).setFocusedWindow(this);
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		ViewServer.get(this).addWindow(this);
	}
}
